package com.ktjy.ch15.service;

import com.ktjy.ch15.entity.Crop;
import com.ktjy.ch15.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface CropService {


    public Page<Crop> findPage(Crop crop, Integer pageNo, Integer pageSize);

    public boolean save(Crop crop);

    public Crop findById(Long cropId);

    public boolean update(Crop crop);

    public boolean delete(Long id);

    public Crop findByCropName(@Param("cropName") String cropName);
}
